package com.exam.service;

import com.exam.domain.entity.Exam;
import com.exam.domain.entity.Question;
import com.exam.domain.entity.Record;
import com.exam.domain.entity.Teacher;
import com.exam.util.BaseResult;

import java.util.List;

public interface TeacherService {
    BaseResult<String> addQuestion(Integer teacherId, String title, String answer, String optionA, String optionB, String optionC, String optionD);

    BaseResult<List<Question>> getAllQuestionsByTeacherId(Integer teacherId);

    BaseResult<String> createExam(Integer teacherId, String examTitle, int questionCount, int questionValue);

    BaseResult<List<Exam>> getExams(Integer teacherId);

    BaseResult<List<Question>> getQuestionsByQuestionText(Integer teacherId, String questionText);

    BaseResult<Teacher> getTeacherInfo(Integer teacherId);

    BaseResult<List<Record>> getStudentsExamRecord(Integer examId);

}
